package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.ShareImagesConfig;
import com.yunshang.shoppingmall.mapper.ShareImagesConfigMapper;
import com.yunshang.shoppingmall.service.ShareImagesConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("shareImagesConfigService")
public class ShareImagesConfigServiceImpl implements ShareImagesConfigService {
    @Autowired
    ShareImagesConfigMapper shareImagesConfigMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return shareImagesConfigMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ShareImagesConfig record) {
        return shareImagesConfigMapper.insert(record);
    }

    @Override
    public int insertSelective(ShareImagesConfig record) {
        return shareImagesConfigMapper.insertSelective(record);
    }

    @Override
    public ShareImagesConfig selectByPrimaryKey(Integer id) {
        return shareImagesConfigMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ShareImagesConfig record) {
        return shareImagesConfigMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ShareImagesConfig record) {
        return shareImagesConfigMapper.updateByPrimaryKey(record);
    }
}
